function URL = url_from_folder(F,S)

% MODIFIED BY: loafellin
% VERSION    : 2012-Mar-22

p = mfilename('fullpath');
[ppath, name, ext] = fileparts(p);
URL = [ppath, filesep, F, filesep, S];
if isdir(URL) && URL(end) ~= filesep
  URL = [URL, filesep];
end
    
